//
//  NavigationControllerStore.swift
//  SomePasti
//
//  Created by 李永彬 on 2025/10/17.
//

import SwiftUI

class NavigationControllerStore: ObservableObject {
    static let shared = NavigationControllerStore()
    
    private var navigationControllers: [String: UINavigationController] = [:]
    
    func storeNavigationController(_ controller: UINavigationController, for tag: String) {
        navigationControllers[tag] = controller
    }
    
    func getNavigationController(for tag: String) -> UINavigationController? {
        return navigationControllers[tag]
    }
}
